package com.dajun.service;

import com.dajun.pojo.dto.OperationDto;
import com.dajun.pojo.dto.ProcessQueryDto;
import com.dajun.pojo.dto.ApplyDto;
import com.dajun.result.Result;

import javax.validation.Valid;

public interface FlowableService {

    Result start(@Valid ApplyDto dto);

    Result terminate(@Valid String processInstanceId);

    Result select(ProcessQueryDto dto);

    Result operation(@Valid OperationDto dto);
}
